Aspect or Feature | kubernetes/ingress-nginx | nginxinc/kubernetes-ingress with NGINX | nginxinc/kubernetes-ingress with NGINX Plus |
---|---|---|---|
Fundamental | |||
Authors | Kubernetes community | NGINX Inc and community | NGINX Inc and community |
NGINX version | Custom NGINX build that includes several third-party modules | NGINX official mainline build | NGINX Plus |
Commercial support | N/A | N/A | Included |
Implemented in | Go/Lua (while Nginx is written in C) | Go/Python | Go/Python |
Load balancing configuration via the Ingress resource |
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module AngrySupport::BelongsToPolymorphic | |
def belongs_to_polymorphic(name, allowed_classes:, **options) | |
belongs_to name, polymorphic: true, **options | |
validates "#{name}_type", inclusion: { in: allowed_classes.map(&:name), allow_nil: !!options[:optional] } | |
define_singleton_method(:"#{name}_types") { allowed_classes } | |
define_singleton_method(:"with_#{name}") do |type| | |
type = case type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if an argument was provided | |
if [ $# -eq 0 ]; then | |
echo "No file path provided." | |
exit 1 | |
fi | |
# Use the provided argument (file path) | |
file="$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import apple_auth | |
from io import BytesIO | |
vd = BytesIO(bytes(apple_auth.IDS(open('idevice.json').read()).request_validation_data())) # create json with Smoothstep/apple-gen-rs | |
tag = vd.read(1) # always 0x02, maybe like the APNS msg for cert? | |
stat16b = vd.read(16) # static across machines, some versioning? | |
dyn16b = vd.read(16) # the actual signature from the obfuscated algorithm | |
len_payload = vd.read(4) | |
payload = BytesIO(vd.read(int.from_bytes(len_payload,"big"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# =================================================================== | |
# APPLICATION PROPERTIES | |
# =================================================================== | |
# ---------------------------------------- | |
# CORE PROPERTIES | |
# ---------------------------------------- | |
# LOGGING | |
logging.file=logs/app.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<import value="javax.imageio.ImageIO"/> | |
<import value="org.apache.commons.codec.binary.Base64"/> |
A working demo of the pop-up can be found here.
I wanted a modal pop-up for images on my new Hugo site, and couldn't find one that worked with the styling that I do to the image path name.
I'm new to Hugo, but I feel that the solution is simple and effective. The close button has been optimzed for accessibility as it is named close
, but
displays only ×
(×).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
myDB: | |
image: postgres:15.3 | |
container_name: my-database | |
restart: always | |
ports: | |
- 5432:5432 | |
environment: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -L https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip -o aws-sam-cli-linux-x86_64.zip | |
unzip aws-sam-cli-linux-x86_64.zip -d sam-installation | |
sudo ./sam-installation/install | |
where sam | |
sam --version |
NewerOlder